#pragma once
#include "SplitTool.h"
#include "cppjieba/Jieba.h"

class SplitToolCppjieba
:public SplitTool
{
public:
    SplitToolCppjieba(){};
    vector<string> cut(const string & sentence) override{
        const char * dictPath = "jiebadict/jieba.dict.utf8";
        const char * modelPath = "jiebadict/hmm_model.utf8";
        const char * userDictPath = "jiebadict/user.dict.utf8";
        const char * idfPath = "jiebadict/idf.utf8";
        const char * stopWordPath = "jiebadict/stop_words.utf8";
        cppjieba::Jieba jieba(dictPath, modelPath, userDictPath, idfPath, stopWordPath);
        vector<string> res;
        jieba.Cut(sentence, res, true);
        return res;
    }
private:

};